package com.eshop.eshop2021_v1.service;

import com.eshop.eshop2021_v1.pojo.GoodType;
import com.eshop.eshop2021_v1.pojo.Goods;
import org.springframework.stereotype.Service;
import org.springframework.ui.Model;

import javax.servlet.http.HttpSession;
import java.util.List;

/**
 * @author: 若若叶
 * @date: 2021/10/11 19:03 FileName: GoodsService Description:
 */
@Service
public interface GoodsService {
  String showGoods(Model model);

  List<Goods> findGoodsByTypeId(Integer typeId, HttpSession session);

  // 查询广告商品
  List<Goods> showadvertisementGoods();
  // 查询商品类型
  List<GoodType> showGoodsType();

  // 根据商品id查询商品
  String findGoodByGoodId(Integer goodId, Model model);
}
